package com.why.hosp.service;

import com.why.yygh.model.hosp.Hospital;
import com.why.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @program: yygh_parent
 * @description:
 * @author: @why
 * @create: 2021-06-09 08:10
 **/
public interface HospitalService {
    void save(Map<String, Object> switchMap);

    /**
     * 查询医院
     *
     * @param hoscode
     * @return
     */
    Hospital getByHoscode(String hoscode);

    Page<Hospital> selectPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    void updateStatus(String id, Integer status);

    /**
     * 医院详情
     *
     * @param id
     * @return
     */
    Map<String, Object> show(String id);

    String getHospName(String hoscode);

    /**
     * 根据医院名称获取医院列表
     */
    List<Hospital> findByHosname(String hosname);

    /**
     * 医院预约挂号详情
     */
    Map<String, Object> item(String hoscode);


}
